﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.global" />
<import type="css" file="css.form" />
<import file="js.My97DatePicker.WdatePicker" />
</head>
<body>
<div class="search">
<form method="post" action="__URL__/work_select_list">
	<b>工作流 - {$type_name} - 查询 ：</b>
     <input type="text" class="Wdate" name="start_time" id="start_time" onClick="WdatePicker({dateFmt:'yyyy-MM'})" value="{$start_time}" />
     <input type="hidden" name="type_id" value="{$type_id}">
     <input type="submit" value="查询" class="submit">
</form>
</div>
<div class="list">
<table class="stripe" cellspacing="0">
    <thead>
        <tr>
            <th width="70%">名称/文号</th>
            <th width="15%">状态</th>
            <th width="15%">操作</th>
        </tr>
    </thead>
 
    <tbody>
   	  <volist name="data_list" id="vo" empty="$empty">
        <tr>
            <td><a href="javascript:form_view({$vo.work_id},{$vo.type_id});">{$vo.work_name}</a></td>
            <td><if condition="$vo.proc_no eq 0" >已结束<else /><font color=red>执行中</font></if></td>
            <td><a href="javascript:proc_view({$vo.work_id},{$vo.type_id})">流程图</a>&nbsp;</td>
        </tr>
      </volist>
    </tbody>
</table>
</div>
</body>
<script language="javascript">
$(document).ready(function(){  
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
});  
function proc_view(work_id,type_id)
{
  myleft=(screen.availWidth-600)/2;
  window.open("__URL__/work_proc_view?type_id="+type_id+"&work_id="+work_id,"proc_view","status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=600,height=400,left="+myleft+",top=100");
}

function form_view(work_id,type_id)
{
  myleft=(screen.availWidth-1000)/2;
  window.open("__URL__/work_form_look?type_id="+type_id+"&work_id="+work_id,"proc_view","status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=1000,height=400,left="+myleft+",top=100");
}
</script>
</html>